package com.java.grammer;

public class Fortest_4 {
    public static void main(String[] args) {
/*
		long star = System.currentTimeMillis();
		for(int i =1;i<=10;i++){
			if(i%2!=0 && i%3!=0 && i%7!=0){
				System.out.println(i);
			}
		}
		long end = System.currentTimeMillis();
		System.out.println("花费的时间为"+(end-star));
*/
        int sum = 0;
        int count = 0;
        for (int a = 1; a <= 100; a++) {
            if (a % 2 != 0) {
                System.out.println(a);
                count++;
                sum += a;
            }


        }
        System.out.println("个数" + count);
        System.out.println("总和为" + sum);
    }
}
